#!/bin/bash
# Copyright (C) 2024 Checkmk GmbH - License: GNU General Public License v2
# This file is part of Checkmk (https://checkmk.com). It is subject to the terms and
# conditions defined in the file COPYING, which is part of this source code package.

set -e
set -o pipefail
shopt -s globstar

LOCALE_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
for path_po_file in "${LOCALE_DIR}"/**/*.po; do
    msgfmt -v -o "${path_po_file%.po}.mo" "${path_po_file}"
done
